<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>修改密码</title>
    <link rel="icon" href="../images/QQ图片20201110081231.ico" type="images/x-ico" />
    <link rel="stylesheet" href="../css/layui.css">
    <script type="text/javascript" src="../js/jquery-3.4.1.min.js"></script>
</head>
<body>
<form class="layui-form" action="">
    <div class="layui-form-item">
        <label class="layui-form-label">旧的密码</label>
        <div class="layui-input-block">
            <input type="password" name="pwd" required  lay-verify="required" placeholder="请输入旧密码" autocomplete="off" class="layui-input">
            <span class="layui-form-mid layui-word-aux">请填写自己账号的旧密码</span>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">新的密码</label>
        <div class="layui-input-block">
            <input type="password" name="pwd1" required  lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
            <span class="layui-form-mid layui-word-aux">请填写自己账号的新密码</span>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">新的密码</label>
        <div class="layui-input-block">
            <input type="password" name="pwd2" required  lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
            <span class="layui-form-mid layui-word-aux">请再次填写自己账号的新密码</span>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <a href="https://www.layuiweb.com" class="layui-btn">确认保存</a>
    </div>
    </div>
</form>

<script>
    //Demo
    layui.use('form', function(){
        var form = layui.form;

        //监听提交
        form.on('submit(formDemo)', function(data){
            layer.msg(JSON.stringify(data.field));
            return false;
        });
    });
</script>
</body>
</html>